<include file="Public/head" />

<body class="no-skin">
    <include file="Public/header" />
    <div class="main-container" id="main-container">
        <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {}
        </script>
        <include file="Public/sidebar" />
        <div class="main-content">
            <div class="main-content-inner">
                <!-- #section:basics/content.breadcrumbs -->
                <include file="Public/breadcrumbs" />
                <!-- /section:basics/content.breadcrumbs -->
                <div class="page-content">
                    <include file="Public/set" />
                    <!-- /section:settings.box -->
                    <div class="row">
                        <div class="col-xs-12">
                            <!-- PAGE CONTENT BEGINS -->
                            <div class="row">
                                <form class="form-inline" action="" method="get" id="form-search">
                                    <label class="inline"> 用户名 </label>
                                    <input type="text" name="keyword" value="{:I(keyword)}" class="form-control">
                                    <label class="inline"> 时间 </label>
                                    <div class="input-group">
                                        <span class="input-group-addon"> 从 </span>
                                        <input type="text" name="starttime" value="{:I(starttime)}" class="form-control date datetime-picker">
                                        <span class="input-group-addon"> 到 </span>
                                    </div>
                                    <div class="input-group">
                                        <input type="text" name="endtime" value="{:I(endtime)}" class="form-control date datetime-picker">
                                        <span class="input-group-addon"> <i class="fa fa-calendar bigger-110"></i> </span>
                                    </div>
                                    <button type="submit" class="btn btn-purple btn-sm">
                                        <span class="ace-icon fa fa-search icon-on-right bigger-110"></span> 搜索
                                    </button>
                                     <button id="download-score" class="btn btn-info btn-sm" data-url="{:U('exporttran')}"> <i class="fa fa-cloud-download"></i> 下载积分异动</button>
                                </form>
                            </div>
                            <div class="space-4"></div>
                            <div class="row">
                                <form id="form" method="post" action="{:U('del')}">
                                    <table class="table table-striped table-bordered table-hover">
                                        <thead>
                                            <tr>
                                                <th width="5%">异动编号</th>
                                                <!-- <th width="5%">会员id</th> -->
                                                <th width="10%">会员名</th>
                                                <th width="10%">异动时间</th>
                                                <th width="10%">异动类型</th>
                                                <th width="10%">交易金额</th>
                                                <th width="15%">当前余额</th>
                                                <th width="5%">经办人</th>
                                                <th width="">备注</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <empty name="list">
                                                <tr>
                                                    <td colspan="9" class="center">暂无记录</td>
                                                </tr>
                                                <else/>
                                                <volist name="list" id="vo">
                                                    <tr>
                                                        <td class="center">{$vo.id}</td>
                                                        <!-- <td class="center">{$vo.uid}</td> -->
                                                        <td class="center">{$vo.uname}</td>
                                                        <td class="center">{$vo.createtime}</td>
                                                        <td class="center">
                                                            <eq name="vo.type" value="1">增</eq>
                                                            <eq name="vo.type" value="-1">减</eq>
                                                        </td>
                                                        <td class="center">{$vo.score}</td>
                                                        <td class="center">{$vo.balance}</td>
                                                        <td class="center">{$vo.opername}</td>
                                                        <td class="left">{$vo.memo}</td>
                                                    </tr>
                                                </volist>
                                            </empty>
                                        </tbody>
                                    </table>
                                </form>
                                {$page}
                            </div>
                            <!-- PAGE CONTENT ENDS -->
                        </div>
                        <!-- /.col -->
                    </div>
                    <!-- /.row -->
                </div>
                <!-- /.page-content -->
            </div>
        </div>
        <!-- /.main-content -->
        <include file="Public/footer" />
    </div>
    <!-- /.main-container -->
    <include file="Public/footerjs" />
    <!-- inline scripts related to this page -->
    <script src="__PUBLIC__/admin/js/amall/score/scoretran.js"></script>
</body>

</html>